package booking.tests;

import org.junit.*;
import booking.pages.*;
import static booking.utils.TestData.*;

public class LoginVerification extends BaseTest{
	
	@Test
	public void verifylogin() {
		HomePage home = new HomePage(driver);
		
		home.navigateToLoginPage()
			.loginAs(loginData, passwordData)
			.goToHomePage()
			.isAtHomePage();
		
		verify.checkIfElementDisplayedValueIs(home.getDisplayedLogin(), loginData);
	}
}
